package com.wctj.api.security.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * SpringSecurity白名单资源路径配置
 * @author carol
 */

@ConfigurationProperties(prefix = "mall.secure")
public class IgnoreUrlsConfig {

    /**
     * 忽略的url
     */
    private List<String> ignoreUrls = new ArrayList<>(10);
    /**
     * 是否开启权限认证 ture:开启，false:关闭
     */
    private Boolean enabled = Boolean.FALSE;


    public List<String> getIgnoreUrls() {
        return ignoreUrls;
    }

    public void setIgnoreUrls(List<String> ignoreUrls) {
        this.ignoreUrls = ignoreUrls;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
}
